package com.example.demo.action.endpoint;/**
 * Created by kete on 2018-11-30.
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者：kete
 * 创建时间：2018-11-30 17:25
 * 功能描述：
 * 版本：
 */
@Configuration
public class EndpointConfig {


    @Value("${monitor.channel.map.key}")
    private String channelMap;

    @Bean
    public ClientPoint buildEndPoint(){
        ClientPoint customEndpoint = new ClientPoint(channelMap) ;
        return customEndpoint ;
    }
}
